package com.mllweb.blog.data.dao;

import com.mllweb.blog.data.orm.BlogArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 文章Dao
 */
public interface BlogArticleDao {
    int insertArticle(@Param("article") BlogArticle article);

    BlogArticle select(@Param("id") int id);

    List<BlogArticle> selectByCategoryId(@Param("categoryId") int id);
}
